let user={
    name: 'demo',
    token: null,
    token_prefix: 'Bearer '
}

function getUserName() {
    return user.name
}

function setUserName(name) {
    user.name = name
}

function setToken(token) {
    user.token = token
}

function setTokenPrefix(token_prefix) {
    user.token_prefix = token_prefix
}

function getToken() {
    if(user.token)
        return user.token_prefix+user.token
    else 
        return user.token
}
// add other navigation functions that you need and export them

export default {
  setUserName,
  getUserName,
  setToken,
  getToken,
  setTokenPrefix
};